//
//  parse_ttl.h
//  cobalt
//
//  Created by Nicolas Godbout on 2013-08-25.
//  Copyright (c) 2013 Nicolas Godbout. All rights reserved.
//

#ifndef __cobalt__parse_ttl__
#define __cobalt__parse_ttl__

#include "parse.h"
#include "rdf.h"


class ParseTTL : public Parser {
    
public:
    
private:
    void        turtleDoc();
    TripleList  triples();
};


struct LexedTTL {
    enum {
        PNAME_NS,
        IRIREF,
        INTEGER,
        DECIMAL,
        DOUBLE,
        LANGTAG,
        STRING,
        PNAME_LN,
        BLANK_NODE_LABEL,
        ANON
    } token;
    void*   data;
};


#endif /* defined(__cobalt__parse_ttl__) */
